#ifndef GENERICPLUGIN_H
#define GENERICPLUGIN_H

#include <QObject>
#include <QtPlugin>
#include <QPluginLoader>
#include "putpackageform.h"
#include "PluginInterface_T1_V0.h"

#define EchoInterface_IID "Examples.Plugin.PluginInterface_T1_V0"    // 定义接口的IID

class GenericPlugin : public QObject, public PluginInterface_T1_V0
{
    Q_OBJECT
    Q_INTERFACES(PluginInterface_T1_V0)

#if QT_VERSION >= 0x050000
    Q_PLUGIN_METADATA(IID EchoInterface_IID FILE "PutPackageForm.json")
#endif // QT_VERSION >= 0x050000

public:
    explicit GenericPlugin(QObject *parent = 0);
    ~GenericPlugin();
    PluginInfo* getPluginInfo();
    QWidget* getWidget();
private:
    PluginInfo *pluginInfo;
    PutPackageForm widget;
};

#endif // GENERICPLUGIN_H
